<?php 
include_once 'lib/config.php';
include_once 'lib/db.php';
include_once 'lib/utils/date.php';

function inject_head(){
	if (function_exists('_inject_head')){
		_inject_head();
	}
}

include 'view/header.php';

//sub page
$sub = $_REQUEST['sub'];
if ($sub === 'pelapor_add'){
	include 'view/admin/pelapor/pelapor_add.php';
}
else if ($sub === 'pelapor_edit'){
	include 'view/admin/pelapor/pelapor_edit.php';
}
else{
	include 'view/admin/pelapor/pelapor.php';
}

?>
<?php
include 'view/footer.php';